﻿namespace DnD.UI.Panels
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    public  class BasePanel : UserControl, IPanel
    {
        public PanelInfo Info { get; set; }

        public event EventHandler<PanelEventArgs> DataModified;
        public event EventHandler<PanelEventArgs> DataSaved;

        public BasePanel()
        {
            Info = new PanelInfo()
            {
                PanelType = GetType()
                ,
                HasModifiableData = false
                ,
                DataHasBeenModified = false
                ,
                ModificationsSaved = false
            };
        }

        public virtual void RestackChildControls()
        {

        }
    }
}
